package com.glsc.ngateway.common.base.repo.oracle.ecology;

import com.glsc.ngateway.common.base.domain.oracle.ecology.WorkflowRequestbase;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;


@Repository
public interface WorkflowRequestbaseRepository extends JpaRepository<WorkflowRequestbase,Integer> , JpaSpecificationExecutor<WorkflowRequestbase> {


    public Optional<WorkflowRequestbase> findByRequestid(Integer requestid);


    List<WorkflowRequestbase> findAllByRequestidIn(List<Integer> requestid);
}
